<ion-view title="录入人员信息">
  <ion-content overflow-scroll="true" padding="true" class="has-header">
    <form name="form" ng-submit="submit()" novalidate>
      <div class="list">
        <div class="item item-input" name="nickName">
          <span class="input-div">姓名</span>
          <input type="text" placeholder="必填" ng-model="data.name" required bsy-form-validate="nameErrorTips">

        </div>
        <div class="item item-input" name="usedName">
          <span class="input-div">曾用名</span>
          <input type="text" placeholder="" ng-model="data.usedName">
        </div>
        <div class="item item-select">
          <span class="input-div">性别</span>
          <select ng-model="data.gender" required bsy-form-validate="sexErrorTips">
            <option value="1">男</option>
          <option value="2">女</option>
          </select>
        </div>
        <div class="item item-input" name="ID">
          <span class="input-div">身份证</span>
          <input type="text" placeholder="必填"
                 required ng-model="data.idCardNo"
                 ng-maxlength="18"
                 ng-minlength="18"

                 bsy-form-validate="idCardNoErrorTips"
          >
        </div>
        <div class="item item-input" name="phoneNum">
          <span class="input-div">联系电话</span>
          <input type="tel" placeholder="" ng-model="data.telephone">
        </div>
        <div class="item item-input" name="residentialAddress">
          <span class="input-div">现住址</span>
          <input type="text" placeholder="必填" required ng-model="data.address" bsy-form-validate="addressErrorTips">
        </div>
        <div class="item item-input">
          <span class="input-div">采集原因</span>
                  <textarea placeholder="必填" style="width: 65%" required ng-model="data.collectionCasuse"
                            bsy-form-validate="collectionCasuseErrorTips"
                            rows="4"
                  >  </textarea>
        </div>

        <div class="item item-input" name="personalPhoto">
          <span class="input-div" style="width: 20%">人员照片</span>
          <div style="width: 80%">

            <ion-photo-grid
              ion-Item-Callback="ionItemCallback"
              remove-item-callback="removeItem"
              add-another-callback="addPicture"
              ion-with-remove-button="true"
              ion-with-add-button="true"
              ion-photo-num-per-row="3"
              ion-photo-items="items">

            </ion-photo-grid>

          </div>

        </div>


        <button class="button button-positive button-block " check-form>提交</button>
      </div>

    </form>
  </ion-content>
</ion-view>
